<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <title>Document</title>
</head>

<body>
    <script src="./lib/jquery.js"></script>
    <script>
        function nihao(data) {
            console.log(data);
        }
        var script = document.createElement('script');
        script.src =
            'http://www.liulongbin.top:3006/api/jsonp?callback=nihao&uname=lisi&age=12';
        // 把动态创建的script标签追加到head标签里面
        var head = document.getElementsByTagName('head')[0];
        head.appendChild(script);
        // 请求发送完成后再把刚刚创建的标签删除了
        head.removeChild(script);
    </script>
</body>

</html>